package com.amumu.drama.common.base.dto.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author sunzhuang
 * @date 2024/9/12 14:08
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */

@Getter
@Setter
public class BasePageReq implements Serializable {

    @ApiModelProperty("页码")
    private Integer pageNum;

    @ApiModelProperty("页大小")
    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum == null ? 1 : pageNum;
    }

    public Integer getPageSize() {
        return pageSize == null ? 10 : pageSize;
    }
}
